<?php
echo $this->Doctype ( 'XHTML1_STRICT' );
?>
<? Header("Content-type: text/html; charset='utf-8';") ?>
<html>
<head>

		<?php
		echo $this->headTitle ();
		?>
		
		<link href="<?=$this->publicUrl?>/styles/estilo.css" type="text/css"
	rel="stylesheet">
<link href="<?=$this->publicUrl?>/styles/thickbox.css" type="text/css"
	rel="stylesheet">
	
<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/jquery-latest-pack.js"></script>

<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/excanvas.js"></script>
<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/jquery.corner.js"></script>

<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/cantos.js"></script>
	

<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/thickbox.js"></script>
<script type="text/javascript"
	src="<?=$this->publicUrl?>/scripts/lacunas.js"></script>

</head>
<body>

<div id="topo">
<h1>Textando</h1>
</div>
<br clear="all" />
<ul id="menu">

	<li <? if (!$this->aba || $this->aba == 'inicio'): ?>class="selecionado"  <?endif; ?>><a href="<?=$this->baseUrl ?>">Início</a></li>
	<? if ($this->logado && (($this->perfil == 'professor') || ($this->perfil == 'administrador'))) : ?>
		<? if ($this->logado && $this->perfil == 'administrador') : ?>
			<li <? if ($this->aba == 'adminusers'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/adminusers">Admin Users</a></li>
		<? endif; ?>
			<li <? if ($this->aba == 'inserirtexto'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/admintextos/inserir">Cadastrar Novo Texto</a></li>
			<li <? if ($this->aba == 'admintextos'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/admintextos">Admin Textos</a></li>
					
	<? endif; ?>
	<?if ($this->logado && $this->perfil != 'administrador') : ?>
		<li <? if ($this->aba == 'opcoes'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/opcoes">Opções</a></li>
	<? endif; ?>
	<?if ($this->logado && $this->perfil == 'aluno') : ?>
	<li <? if ($this->aba == 'pesquisar_textos'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/textos">Pesquisar Textos</a></li> 
	<li <? if ($this->aba == 'pesquisar_turmas'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/turmas">Pesquisar Turmas</a></li>
	<? endif; ?>
	<?if ($this->logado && $this->perfil == 'professor') : ?>
	<li <? if ($this->aba == 'adminturmas'): ?>class="selecionado" <?endif; ?>><a href="<?=$this->baseUrl ?>/adminturmas">Admin Turmas</a></li>
	<? endif; ?>
	<? if ($this->logado) :?><li class="ultimo"><a href="<?=$this->baseUrl ?>/sair">Sair</a></li>
	
	<? else :  ?>
	<li <? if ($this->aba == 'cadastro'): ?>class ="selecionado"<?endif; ?>" ><a href="<?=$this->baseUrl ?>/cadastro">Cadastro</a></li>
	<? endif; ?>
</ul>

<div id="principal_borda">
<div id="principal">
		<?php
		echo $this->layout ()->content;
		?>
		</div>
</div>

<div id="rodape">
<p id="creditos">Desenvolvido por Diego Pessoa 

<a href="mailto:contato@diegopessoa.com"> contato@diegopessoa.com</a><br />

 Modificado por Milton Júnior 
<a href="mailto:miltonjr27@gmail.com"> contato@miltonjr.com</a> <br /></p>
<ul id="marcas">
	<li><img height="30 "src="<?=$this->publicUrl ?>/imagens/logo_ifpb2.gif" alt="logomarca: IFPB paraíba" />
	
	
	<li><img src="<?=$this->publicUrl ?>/imagens/logo_nav.gif" alt="logomarca: nav" />
	
	
	<li><img src="<?=$this->publicUrl ?>/imagens/logo_ept.gif" alt="logomarca: ept virtual" />

</ul>
</div>
</body>
</html>
